
import java.awt.Color;
import java.awt.Graphics;

import javax.swing.BorderFactory;
import javax.swing.JPanel;

//used to render a block
public class BlockPanel extends JPanel
{
    //BlockType block; ?
    public BlockPanel() //have a BlockType as a param?
    {
        super();
        setBackground(Color.WHITE);
    }

    @Override
    public void paint(Graphics g)
    {
        super.paint(g);
        
    }
    public void changeColor(Color c){
    	setBackground(c);
    	if(c != Color.white)
    		setBorder(BorderFactory.createLineBorder(Color.BLACK));
    	else
            setBorder(null);
    }

}
